﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dora.Tools.Insurance.AYB.Dto
{
    /// <summary>
    /// 保费查询请求参数
    /// </summary>
    public class QueryPremiumRequestDto : AYB_RequestBaseDto
    {
        /// <summary>
        /// 数据部分
        /// </summary>
        public QueryPremiumData data { get; set; }
    }

    /// <summary>
    /// 保费查询请求参数 数据部分
    /// </summary>
    public class QueryPremiumData
    {
        /// <summary>
        /// 产品ID
        /// </summary>
        public string product_id { get; set; }
        /// <summary>
        /// 起保时间
        /// </summary>
        public string begin_datetime { get; set; }
        /// <summary>
        /// 止保时间
        /// </summary>
        public string end_datetime { get; set; }
        /// <summary>
        /// 被保人信息（最大支持1000人）
        /// </summary>
        public List<InsurantQueryInfo> insurant_info { get; set; }
    }

    /// <summary>
    /// 被保人信息
    /// </summary>
    public class InsurantQueryInfo
    {
        /// <summary>
        ///  姓名   必填
        ///  示例：张三
        /// </summary>
        public string name { get; set; }
        /// <summary>
        ///  性别 M:男,F:女    必填
        ///  示例：M
        /// </summary>
        public string gender { get; set; }
        /// <summary>
        ///  证件类型 I:身份证,P:护照,O:其他    必填
        ///  示例：I
        /// </summary>
        public string cert_type { get; set; }
        /// <summary>
        ///  证件号码    必填
        ///  示例：110101198808087916
        /// </summary>
        public string cert_code { get; set; }
        /// <summary>
        /// 出生日期     必填
        ///  示例：1988-08-08
        /// </summary>
        public string birthday { get; set; }
    }
}
